<!-- cartoes/form -->
<%= form_for(@cartao) do |f| %>
	
	<%= errors_for @cartao %>

	<fieldset>
		<div>
		  <%= f.label :descricao, :class => "obrigatorio" %>
		  <%= f.text_field :descricao %>
		</div>
		
		<div>
		  <%= f.label :digitos, :class => "obrigatorio" %>
		  <%= f.text_field :digitos, :maxlength => "4", :class => "number" %>
		</div>
		
		<div>
		  <%= f.label :dia_vencimento, :class => "obrigatorio" %>
		  <%= f.number_field :dia_vencimento %>
		</div>
	</fieldset>

	<div class="actions">
	  <%= f.submit "Enviar", :class => "btn btn-primary" %>
	  <%= link_to "Voltar", cartoes_path %>
	</div>

<% end %>
